import http from '@/api';

export const modelSaveModel = params => http.post(`/model/saveModel`, params);

export const modelModelToSave = params => http.post(`/model/modelToSave`, params);
export const modelModelToPublish = params => http.post(`/model/modelToPublish`, params);
export const modelModelToDisable = params => http.post(`/model/modelToDisable`, params);
export const modelFindModelPage = params => http.post(`/model/findModelPage`, params);
export const modelFindModelById = params => http.post(`/model/findModelById`, params);
export const modelSaveAddress = params => http.post(`/model/saveAddress`, params);
export const modelRemoveAddress = params => http.post(`/model/removeAddress`, params);
export const modelSaveClassRule = params => http.post(`/model/saveClassRule`, params);
export const modelRemoveClassRule = params => http.post(`/model/removeClassRule`, params);
export const modelSaveClassMark = params => http.post(`/model/saveClassMark`, params);
export const modelRemoveClassMark = params => http.post(`/model/removeClassMark`, params);
export const modelSaveBuyMark = params => http.post(`/model/saveBuyMark`, params);
export const modelRemoveBuyMark = params => http.post(`/model/removeBuyMark`, params);
export const activitySaveActivity = params => http.post(`/activity/saveActivity`, params);
export const activityUpBrowseCount = params => http.post(`/activity/upBrowseCount`, params);
export const activityUpPayCount = params => http.post(`/activity/upPayCount`, params);
export const activityFindActivityPage = params => http.post(`/activity/findActivityPage`, params);

export const modelGetAddressByModelId = params => http.post(`/model/getAddressByModelId`, params);
export const modelGetClassRuleByModelId = params => http.post(`/model/getClassRuleByModelId`, params);
export const modelGetClassMarkByModelId = params => http.post(`/model/getClassMarkByModelId`, params);
export const modelGetBuyMarkByModelId = params => http.post(`/model/getBuyMarkByModelId`, params);
